B0722QNJC2 EBOK by Unknown
Author:Unknown
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 0101-01-01T00:00:00+00:00
Avoiding obstacles
Planning paths without obstacles is, as has been shown, quite easy. However, it becomes a bit more challenging when your robot needs to walk around obstacles. Let's look at a case where there is an obstacle in the path you calculated previously. It might look like this:
You can still use the same path planning algorithm to find the starting angle; however, you'll now need to use your sonar sensor to detect the obstacle. To keep this all very simple, you'll do this in steps. You'll turn and move toward the obstacle for a one-time distance. Then, you'll check whether there is a barrier. When your sonar sensor detects the obstacle, you'll need to recalculate a path to avoid the barrier. To keep this all very simple, we'll assume that the barrier is quite small and that you'll always turn to the left. You'll turn to the left 90 degrees and then move down the barrier at a one-time distance. If the path is no longer blocked, based on the side sonar reading, you'll move on more time distance and then turn back to the path toward the desired path to the goal.
In this case, using these rules, the robot will travel the following path:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Great Music City by Andrea Baker(33427)
Aircraft Design of WWII: A Sketchbook by Lockheed Aircraft Corporation(32380)
Call Me by Your Name by André Aciman(20703)
The Secret History by Donna Tartt(19443)
The Art of Boudoir Photography: How to Create Stunning Photographs of Women by Christa Meola(18753)
Shoot Sexy by Ryan Armbrust(17844)
Plagued by Fire by Paul Hendrickson(17527)
Portrait Mastery in Black & White: Learn the Signature Style of a Legendary Photographer by Tim Kelly(17098)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17076)
Photographically Speaking: A Deeper Look at Creating Stronger Images (Eva Spring's Library) by David duChemin(16795)
Ready Player One by Cline Ernest(15122)
Pimp by Iceberg Slim(14778)
Bombshells: Glamour Girls of a Lifetime by Sullivan Steve(14210)
The Goal (Off-Campus #4) by Elle Kennedy(13951)
Art Nude Photography Explained: How to Photograph and Understand Great Art Nude Images by Simon Walden(13142)
Kathy Andrews Collection by Kathy Andrews(12078)
The Priory of the Orange Tree by Samantha Shannon(9351)
The remains of the day by Kazuo Ishiguro(9202)
Thirteen Reasons Why by Jay Asher(9106)